# 本次xadmin的账号密码如下
# 账号：lizhenglong
# 密码：lizhenglong
import xadmin
from xadmin import views

# 这是全局配置
class BaseSetting(object):
    """xadmin的基础配置"""
    enable_themes = True  # 开启主题切换功能
    use_bootswatch = True


xadmin.site.register(views.BaseAdminView, BaseSetting)

# 这是xadmin的页面配置
class GlobalSettings(object):
    """xadminde全局配置"""
    site_title = "lizhenglong的天下"  # 设置站点标题
    site_footer = "lizhenglong的网站"  # 设置站点的页脚
    menu_style = "accordion"  # 设置菜单折叠


xadmin.site.register(views.CommAdminView, GlobalSettings)


# 车商品名字
from .models import Car


class CarModelAdmin(object):
    list_display = ["car_name", "orders", "is_show"]


xadmin.site.register(Car, CarModelAdmin)

# 歌曲细节



